package com.rgp.apidriver.controller;

import com.rgp.apidriver.service.DriverPointsService;
import com.rgp.internalcommon.dto.PointsDto;
import com.rgp.internalcommon.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author nhp
 * @version 1.0
 * @description TODO
 * @date 2024-04-20 2:31
 */
@RestController
public class DriverPointsController {

    @Autowired
    private DriverPointsService driverPointsService;

    @PostMapping("/point/upload")
    public ResponseResult uploadPoints(@RequestBody PointsDto pointsDto){
        return driverPointsService.uploadPoints(pointsDto);
    }
}
